<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  
 </head>
 <body>
  <script>
    var mycars = ["Saab","Volvo","BMW"];
    mycars.splice(1,0,"宝马","奇瑞","奔驰"); //从索引1位置删除0个并插入3个元素
    document.write(mycars);	

  </script>
 </body>
</html>
